﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Register.Command;
using Register.DALFactory;
using Register.IDAL;
using Register.Model;
namespace Register.BLL
{
    /// <summary> 
    /// FileName: DoctorPersonInfoBLL.cs    
    /// CLRVersion: 4.0.30319.269    
    /// Author: DoubleZ    
    /// Corporation:     
    /// Description:     
    /// DateTime: 2012/7/7 11:01:05    
    /// </summary>
  public  class DoctorPersonInfoBLL
  {
      private static String typeNameKey = "IDoctorPersonInfoDALKey";
#region 获取医生用户信息
      public static List<DoctorUserInfo> GetDoctorUserInfo(string doctorUserID) {
          try
          {
              IDoctorPersonInfoDAL iParamter = DALFactory<IDoctorPersonInfoDAL>.Create(typeNameKey);

              return iParamter.GetDoctorUserInfo(doctorUserID);
          }
          catch (Exception e)
          {
              LogRecordHelper.LogNote("ERROR", e.Message);
              throw e;
          }
      }
#endregion
      #region 获取医生信息
      public static List<DoctorInfo> GetDoctorInfo(string doctorID)
      {
          try
          {
              IDoctorPersonInfoDAL iParamter = DALFactory<IDoctorPersonInfoDAL>.Create(typeNameKey);

              return iParamter.GetDoctorInfo(doctorID);
          }
          catch (Exception e)
          {
              LogRecordHelper.LogNote("ERROR", e.Message);
              throw e;
          }
      }
      #endregion
  }
}
